package com.myticket.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.myticket.dao.MyticketBoardDao;

@Controller
public class MyticketDeleteController {

	@Autowired
	private MyticketBoardDao myticketBoardDao;
		
	@RequestMapping(value="/member/delete.do")
	public String delete(@RequestParam("num") int num){
		
		System.out.println("11");
		myticketBoardDao.deleteBoard(num);
		
		return "redirect:/member/myTicketList.do";
	}
}
